#ifndef COMPAT_H_
#define COMPAT_H_

//#define EMBED 	//comment/uncomment as needed

#endif


#define FORECOLOR 15
#define BACKCOLOR COR_DE_TIJOLO

#ifdef EMBED

	#include "embed.h"

	# define writeChar(ch) PutChar((ch))
	# define printString(msg) PutString((msg))
	# define ClearScrn(att) ClearScreen(att)

	# define getKey() ScanCode2Ascii(GetScanCode())
	# define hasKey() ScanCodeRdy()
	# define setCursor(row, col) SetCursorPosition((row), (col))

#else

	#include "video-text.h"
	#include "video-graphics.h"
	#include "timer.h"
	#include "ints.h"
    #include "codepage.h"
	#include "serial.h"
	#include <stdio.h>
	#include <conio.h>
        #include <stdlib.h>
	#include <time.h>
	#include <dos.h>
        #include "sprite.h"
	#include "kbc.h"
	#define COR_DE_TIJOLO 113
	#define CHR_H 16

	# define writeChar(ch) printf("%c", (ch))
	# define printString(msg) printf("%s", (msg))
	# define ClearScrn(att) fillScreen(att)
	extern int scancode;

	# define getKey() getch()
	# define hasKey() kbhit()
	# define setCursor(row, col) gotoxy((col), (row))

#endif
